package lu.med.praxiswahl.wahlumed.client.patienten;

import java.awt.BorderLayout;

import javax.swing.JPanel;
import javax.swing.JTabbedPane;

import lu.med.praxiswahl.wahlumed.client.wclient.Main;
import lu.med.praxiswahl.wahlumed.client.wclient.PatientenSuchmaske;


/**
 * 
 * @author Lars Holger Roth
 */
@SuppressWarnings("serial")
public class VersicherungenFormularePanel extends JPanel
{
    private TransportscheinPanel transportPanel;
    private R4Panel r4;
    private VersicherungenE112Panel e112Panel;
    private KrankmeldungPanel km;
    private VersicherungScanPanel vp;
    private JTabbedPane tabbedPane;
    private VersicherungAntraegePanel verBerichtPanel;

    public VersicherungenFormularePanel(Main dataManager,
	    PatientenSuchmaske pm, PatientenPanel pp, JTabbedPane tabbedPane)
    {
	super(new BorderLayout());
	this.tabbedPane = tabbedPane;
	
	JTabbedPane mainTab = new JTabbedPane();

	// ---------------------------------------------------------
	// Transportschein
	// ---------------------------------------------------------
	transportPanel = new TransportscheinPanel(
		dataManager, pm, this.tabbedPane);

	// ---------------------------------------------------------
	// R4
	// ---------------------------------------------------------
	r4 = new R4Panel(dataManager, pm, this.tabbedPane);

	// ---------------------------------------------------------
	// E112
	// ---------------------------------------------------------
	e112Panel = new VersicherungenE112Panel(
		dataManager, pm, this.tabbedPane);

	// ---------------------------------------------------------
	// Krankmeldung
	// ---------------------------------------------------------
	km = new KrankmeldungPanel(dataManager, pm, this.tabbedPane);

	// ----------------------------------------------------------
	// Gescannt
	// ----------------------------------------------------------
	vp = new VersicherungScanPanel(dataManager, pm, this.tabbedPane);
	
	//----------------------------------------------------------------
	// AC
	//---------------------------------------------------------------
	
	verBerichtPanel = new VersicherungAntraegePanel(
		dataManager, pp, pm, this.tabbedPane);

	//mainTab.add("E112", transportPanel);
	mainTab.add("S2", transportPanel);
	mainTab.add("Transportschein", e112Panel);
	mainTab.add("AC", verBerichtPanel);
	mainTab.add("R4", r4);
	mainTab.add("Krankmeldung", km);
	mainTab.add("Gescannt", vp);

	this.add(mainTab, BorderLayout.CENTER);
    }

    /**
     * @return the transportPanel
     */
    public TransportscheinPanel getTransportPanel()
    {
        return transportPanel;
    }

    /**
     * @param transportPanel the transportPanel to set
     */
    public void setTransportPanel(TransportscheinPanel transportPanel)
    {
        this.transportPanel = transportPanel;
    }

    /**
     * @return the r4
     */
    public R4Panel getR4()
    {
        return r4;
    }

    /**
     * @param r4 the r4 to set
     */
    public void setR4(R4Panel r4)
    {
        this.r4 = r4;
    }

    /**
     * @return the e112Panel
     */
    public VersicherungenE112Panel getE112Panel()
    {
        return e112Panel;
    }

    /**
     * @param panel the e112Panel to set
     */
    public void setE112Panel(VersicherungenE112Panel panel)
    {
        e112Panel = panel;
    }

    /**
     * @return the km
     */
    public KrankmeldungPanel getKm()
    {
        return km;
    }

    /**
     * @param km the km to set
     */
    public void setKm(KrankmeldungPanel km)
    {
        this.km = km;
    }

    /**
     * @return the vp
     */
    public VersicherungScanPanel getVp()
    {
        return vp;
    }

    /**
     * @param vp the vp to set
     */
    public void setVp(VersicherungScanPanel vp)
    {
        this.vp = vp;
    }

    /**
     * @return the verBerichtPanel
     */
    public VersicherungAntraegePanel getVerBerichtPanel()
    {
        return verBerichtPanel;
    }

    /**
     * @param verBerichtPanel the verBerichtPanel to set
     */
    public void setVerBerichtPanel(VersicherungAntraegePanel verBerichtPanel)
    {
        this.verBerichtPanel = verBerichtPanel;
    }
}
